/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Frédéric
 */
public class ScriptLocation {
    
    public static void main(String[] args) {
        PersistenceMgr2 p = new PersistenceMgr2("vehicules.txt", "clients.txt", "locations.txt");
        
        Location[] locations = p.donneLesLocations();
        
        for (Location location : locations) {
            System.out.println(location.getClient().getNom() + ", " + location.getVehicule().getNumeroPlaque() + ", " + location.calculeCoutLocation());
        }
        
    }
    
}
